import { AxiosInstance } from 'axios';
import { Plugin } from 'vue';

const VueAxios: Plugin = {
    install (app, instance: AxiosInstance) {
      if (!instance) {
        console.error('You have to install axios')
        return
      }
      app.config.globalProperties.axios = instance
      app.config.globalProperties.$http = instance
    }
  }
  export {
    VueAxios
  }
  